package com.xtyhz.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.Parameter;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.Date;

@TableName(value ="ad_user")
@Data
@Schema(description = "管理员信息")
public class User {

    @TableId(type = IdType.AUTO)
    @Parameter(name = "id", description = "管理员ID", required = true)
    private Integer UserId;

    @Parameter(name = "nickname", description = "管理员真实姓名", required = true)
    private String nickname;

    @Parameter(name = "username", description = "管理员名称", required = true)
    private String username;

    @Parameter(name = "password", description = "管理员密码", required = true)
    private String password;

    @Parameter(name = "phone", description = "管理员电话", required = true)
    private String phone;

    @Parameter(name = "email", description = "管理员邮箱", required = true)
    private String email;


    @Parameter(name = "avatarUrl", description = "管理员头像", required = true)
    @TableField(value = "avatar_url")
    private String avatarUrl;

    @Parameter(name = "createTime", description = "创建时间", required = true)
    @TableField(value = "create_time")
    private Date createTime;

    @Parameter(name = "lastLogin", description = "最后一次修改时间", required = true)
    @TableField(value = "last_login")
    private Date lastLogin;




}
